package environnement;

import java.util.HashMap;

import ast.interfaces.IAST;

import environnement.interfaces.IEnv;

public class Env implements IEnv{
	private HashMap<String, Integer> R;
	private HashMap<String, IAST> P;
	private HashMap<String, IAST> F;

	public Env(){
		R = new HashMap<String, Integer>();
		P = new HashMap<String, IAST>();
		F = new HashMap<String, IAST>();	
	}
	@Override
	public HashMap<String, Integer> getR() {
		return R;
	}

	@Override
	public HashMap<String, IAST> getP() {
		return P;
	}

	@Override
	public HashMap<String, IAST> getF() {
		return F;
	}
	
	public String toString(){
		String ret="";
		ret+="R:=" + R.toString()+"\n";
		ret+="P:=" + P.toString()+"\n";
		ret+="F:=" + F.toString()+"\n";
		
		return ret;
	}

}
